home *** CD-ROM | disk | FTP | other *** search
- #include <time.h>
- #include <dos/dos.h>
-
- clock_t clock(void)
- { struct DateStamp ds2;
- DateStamp(&ds2);
- return (((ds2.ds_Days)*(24*60)+
- ds2.ds_Minute)*(60*TICKS_PER_SECOND)+
- ds2.ds_Tick)*CLOCKS_PER_SEC/TICKS_PER_SECOND;
- }
-